package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class StrTest7 {
    public static void main(String[] args) {
        String name="叶树松";
        int age=20;
        double score=99.666;
        String s=String.format("本次最高分同学信息如右：%s,分数 %5.2f,年龄是%d",name,score,age);
        System.out.println(s);

        //String s3="本次最高分同学信息如右："+name+",分数 "+score+",年龄是"+age;
    }
}
